package co.za.itweb.defenceweb;



public class RSSItem 
{
	private String _title = null;
	private String _author = null;
	private String _link = null;
	private String _category = null;
	private String _image = null;
	private String _bigimage = null;
	private String _id = null;
	private String _summary = null;
	private String _pubDate = null;
	private StringBuilder _story = null;
	private String _editorialcontacts = null;
	
	RSSItem()
	{
	}
	void setTitle(String title)
	{
		_title = title;
	}
	void setAuthor(String author)
	{
		this._author = author;
	}
	void setLink(String link)
	{
		_link = link;
	}
	void setCategory(String category)
	{
		_category = category;
	}
	
	String getTitle()
	{
		return _title;
	}
	String getAuthor()
	{
		return _author;
	}
	String getLink()
	{
		return _link;
	}
	String getCategory()
	{
		return _category;
	}
	String getImage()
	{
		return _image;
	}
	public void setImage(String image) {
		this._image=image;
		
	}
	
	String getbigImage()
	{
		return _bigimage;
	}
	public void setbigImage(String bigimage) {
		this._bigimage=bigimage;
		
	}
	
	String getId()
	{
		return _id;
	}
	public void setId(String id) {
		this._id=id;
		
	}
	
	String getSummary()
	{
		return _summary;
	}
	public void setSummary(String summary) {
		this._summary=summary;
		
	}
	
	String getpubDate()
	{
		return _pubDate;
	}
	public void setpubDate(String pubDate) {
		this._pubDate=pubDate;
		
	}
	
	
	StringBuilder getStory()
	{
		return _story;
	}
	public void setStory(StringBuilder buf) {
		this._story=buf;
		
	}
	
	public String toString()
	{
		// limit how much text we display
		if (_title.length() > 42)
		{
			return _title.substring(0, 42) + "...";
		}
		return _title;
	}
	public void setEditorialContacts(String string) {
		this._editorialcontacts=string;
		
	}
	public String getEditorialContacts() {
		return _editorialcontacts;
		
	}
	
}
